import App from './App'

// #ifndef VUE3
import Vue from 'vue'
Vue.config.productionTip = false
App.mpType = 'app'
import * as Api from './api/api.js'
Vue.prototype.$api = Api;

import * as Common from './api/common.js'
Vue.prototype.$common = Common;

import * as Helper from './api/helper.js'
Vue.prototype.$helper = Helper;

import * as Clac from './common/clac.js'
Vue.prototype.$clac = Clac;

import tabBar from 'components/tab-bar/index.vue'
Vue.component('tab-bar',tabBar)

import echarts from 'components/echarts/index.vue'
Vue.component('echarts',echarts)

import share from './api/share.js'
Vue.mixin(share)

const app = new Vue({
	...App,
	share
})
app.$mount()
// #endif

// #ifdef VUE3
import {
	createSSRApp
} from 'vue'
export function createApp() {
	const app = createSSRApp(App)
	return {
		app
	}
}
// #endif
